package t;

public class test1 {
    public static void main(String[] args) {
        String str="123,234,3245432,2343245432,3245432,3245432";
        String[] split = str.split(",");
        for (String s : split) {
            System.out.println(s);
        }
        System.out.println(str.lastIndexOf(",")==(str.length()-1));
    }
}
